package com.lottery.material.service.portal.report.impl;

import com.lottery.material.dao.report.ReportRecordMapper;
import com.lottery.material.pojo.report.ReportRecord;
import com.lottery.material.service.portal.report.ReportRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:    举报服务实现类
 * Author:         sunny
 * CreateDate:     2019-04-13 18:17
 */
@Service
public class ReportRecordServiceImpl implements ReportRecordService {

    @Autowired
    private ReportRecordMapper reportRecordMapper;

    /**
     * description: 保存举报记录
     * author sunny
     * createDate 2019-04-13 下午 6:18
     * @param reportRecord
     */
    @Override
    public Integer saveReportRecord(ReportRecord reportRecord) {
        Integer count = reportRecordMapper.insertSelective(reportRecord);
        if(count <= 0){
            return -1;
        }
        return count;
    }
}
